import React, { useContext } from 'react'
import { CountContext } from './Demo4'

const ChildrenCom = () => {
    let obj = useContext(CountContext)
    return <h2>{obj.count + obj.name}</h2>
}

export default ChildrenCom
